﻿#include "box_object.h"

#include "player_object.h"


BoxObject::BoxObject(int x, int y, int width, int height, SDL_Texture*& texture)
    : texture(texture), GameObject(x, y, width, height, true) {}

void BoxObject::render(SDL_Renderer* renderer)
{
    SDL_FRect rect = { realX, realY, static_cast<float>(width), static_cast<float>(height) };
    SDL_RenderTexture(renderer, texture, nullptr, &rect);
}